
import { Navigate } from 'react-router-dom'
import { lazy, Suspense } from 'react'
import React from 'react'
import Overview from '../views/overview'
import Audio from '../views/Audio';
import OverviewUpdate from '../views/overviewUpdate'
import WorkExp from '../views/WorkExp'
import Preview from '../views/preview'
import StudyExp from '../views/studyExp'
import Introduction from '../views/introduction'

import Message from "../views/wxq/Message";
import ChatRoom from "../views/wxq/ChatRoom";

// 我的页面
import My from "../views/cll/my"
// 投递箱
import Postbox from "../views/cll/postbox"
// 感兴趣
import Intereste from "../views/cll/intereste"

// 投递详情
import PostXiang from "../views/cll/postXiang";
// 设置
import Shezhi from "../views/cll/shezhi"
const Login = lazy(() => import("../views/wxq/Login"));
const routes = [

    { path: '/overview', element: <Overview /> },
    { path: '/overviewUpdate', element: <OverviewUpdate /> },
    { path: '/introduction', element: <Introduction /> },
    { path: '/WorkExp', element: <WorkExp /> },
    { path: '/preview', element: <Preview /> },
    { path: '/StudyExp', element: <StudyExp /> },
    { path: '/', element: <Navigate to='/overview' /> },
    { path: "/message", element: <Message /> },
    { path: "/chatroom", element: <ChatRoom /> },
    { path: '/audio', element: <Audio /> },
    // 我的页面
    {
        path: "/my", element: <My />,
    },
    // 投递箱
    {
        path: "/postbox", element: <Postbox />
    },
    // 感兴趣
    {
        path: "/intereste", element: <Intereste />
    },
    // 投递详情
    {
        path: "/postxiang", element: <PostXiang />
    },
    // 设置
    {
        path: "/she", element: <Shezhi />
    },

    { path: "/login", element: <Suspense fallback={<div>加载中···</div>}><Login /></Suspense> },



]
export default routes